package com.libinyn.base.pms.serivce.sys;


import com.libinyn.base.pms.entity.sys.SysUserEntity;
import com.libinyn.base.pms.entity.sys.SysUserTokenEntity;
import com.libinyn.base.pms.serivce.BaseService;

import java.util.Set;


/**
 * shiro相关接口
 * @fileName: ShiroService.java
 * @author: bin.li01
 * @date: 2017/12/15 13:42
 * @version: v1.0.0
 */
public interface ShiroService {

    /**
     * 获取用户权限列表
     * @param userId
     * @return
     */
    Set<String> getUserPermissions(long userId);

    /**
     * 根据token获取UserToken
     * @param token
     * @return
     */
    SysUserTokenEntity queryByToken(String token);

    /**
     * 根据用户ID，查询用户
     * @param userId
     * @return
     */
    SysUserEntity queryUser(Long userId);
}
